package com.jt.safe.extension

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders

inline fun <reified VM : ViewModel> FragmentActivity.viewModelProvider() =
    ViewModelProviders.of(this).get(VM::class.java)

inline fun <reified VM : ViewModel> Fragment.viewModelProvider() =
    ViewModelProviders.of(this).get(VM::class.java)


